﻿using JTTD.Common.Enum;
using System;
using System.Collections.Generic;
using System.Text;
using JTTD.Common.Helper;

namespace JTTD.Domain.Dtos.ShopActivity.Response
{
    /// <summary>
    /// 店铺活动
    /// </summary>
    public  class ShopActivityInfoResponseDto:BaseResponseDto
    {
        /// <summary>
        /// 活动编号
        /// </summary>
        public string No { get; set; }
        /// <summary>
        /// 活动名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime StartTime { get; set; }

        /// <summary>
        /// 开始时间字符串
        /// </summary>
        public string StartTimeStr { get => StartTime.ToString("yyyy-MM-dd HH:mm:ss"); }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime EndTime { get; set; }

        /// <summary>
        /// 结束时间字符串
        /// </summary>
        public string EndTimeStr { get => EndTime.ToString("yyyy-MM-dd HH:mm:ss"); }
        /// <summary>
        /// 活动类型：0满减活动，1代金券活动
        /// </summary>
        public ShopActivityTypeEnum Type { get; set; }

        /// <summary>
        /// 活动类型字符串
        /// </summary>
        public string TypeStr { get => Type.GetDescription(); }
        /// <summary>
        /// 优惠条件达成金额
        /// </summary>
        public decimal FullAmount { get; set; }
        /// <summary>
        /// 满减金额
        /// </summary>
        public decimal CouponAmount { get; set; }
        /// <summary>
        /// 代金券金额
        /// </summary>
        public decimal CashCouponAmount { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnable { get; set; } = false;
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDelete { get; set; } = false;

        /// <summary>
        /// 活动图片
        /// </summary>
        public string Photo { get; set; }

        /// <summary>
        /// 店家id
        /// </summary>
        public int ShopId { get; set; }
    }
}
